﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Diagnostics;
using IMTApp;
using System.IO;
using GPM.QuickQuote.Logging;


namespace IMTWindowsService
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        /// 

        static void Main()
        {

           GpmLogger logger = new GpmLogger();

            log4net.Config.XmlConfigurator.Configure(new FileInfo(@"C:\Program Files\GPMDEV\IMTSetup\IMTWindowsService.exe.config")); 
            logger.LogInfo(" ");
            logger.LogInfo("**************************************");
            logger.LogInfo("IMTWindowsService:Program Start");

            ServiceBase[] ServicesToRun;            
            ServicesToRun = new ServiceBase[] 
			{                      
				        new FileWatcher() 
			};
            ServiceBase.Run(ServicesToRun);
            
        }
    }
}
